package exam;

/**
 * Tests the answer to the first recursion question.
 * The text of the question is as follows:
 * "Write a recursive method that returns a String n characters long.  c indicates the character
 *  to use."
 * 
 * @author Branden Ogata
 *
 */

public class TestRecursionA00 extends Tester
{
  public static void main(String[] args)
  {
    final double points = getPoints(args);
    
    RecursionA00 question = new RecursionA00();

    System.out.println(test(Category.EQUALS, "line(\'+\', 0):", "", 
                            question.line('+', 0), percentageToPoints(FOURTH, points)));
    System.out.println(test(Category.EQUALS, "line(\'*\', 1):", "*", 
                            question.line('*', 1), percentageToPoints(FOURTH, points)));
    System.out.println(test(Category.EQUALS, "line(\'*\', 2):", "**", 
                            question.line('*', 2), percentageToPoints(FOURTH, points)));
    System.out.println(test(Category.EQUALS, "line(\'*\', 4):", "****", 
                            question.line('*', 4), percentageToPoints(FOURTH, points)));
    
    System.out.format("[%.2f/%.2f]%n", getTotalPoints(), points);
  }
}
